/*
  Name: 
  Copyright: 
  Author: 
  Date: 15/01/08 23:27
  Description: 
*/

#ifndef __DEADPROXYPACKETLOG_h__
#define __DEADPROXYPACKETLOG_h__

#ifdef __BORLANDC__
	#pragma hdrstop
#endif

#ifndef WX_PRECOMP
	#include <wx/wx.h>
#else
	#include <wx/wxprec.h>
#endif

class Packet
{
    public:
        unsigned char * buffer;
        int length;
        int sendrecv;
        wxString * GetString();
        wxString * GetPacketString();
        Packet(unsigned char * buf, int len, int sr);
        virtual ~Packet();
};
    

WX_DECLARE_OBJARRAY(Packet, ArrayOfPackets);

class PacketLog
{
    private:
        ArrayOfPackets * Packets;
        wxMutex * mutex;
	public:
        wxString * AddPacket(unsigned char * buffer, int len, int sr);
        void ClearLog();
        wxArrayString * GetListBoxArray();
        wxString * GetPacketString(int i);
        PacketLog();
        virtual ~PacketLog();
        
};

#endif
